﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClickNET.IO
{
    /// <summary>
    /// Object representing a filesystem directory
    /// </summary>
    public abstract class DirectoryEntity
    {
        /// <summary>
        /// Absolute filesystem path
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// List of files in the immediate path
        /// </summary>
        public List<FileEntity> Files { get; set; }

        public DirectoryEntity(string directoryPath)
        {
            this.Path = directoryPath;
        }

        /// <summary>
        /// Populate relevant file details
        /// </summary>
        public abstract void Load();
    }
}
